<?php namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class DeviceMainBody extends Model {

	//
	protected $table = "device_main_body";
	protected $fillable = ['device_id', 'mb_id'];

	public function main()
	{
		return $this->hasOne("App\Models\MainBody", "id", "mb_id");
	}

}
